using System;
using System.Runtime.InteropServices;

namespace CloudClipboardSync
{
    public static partial class WinApi
    {
        // defined in winuser.h
        public const int WM_DRAWCLIPBOARD = 0x308;
        public const int WM_CHANGECBCHAIN = 0x030D;

        [DllImport("User32.dll")]
        public static extern int SetClipboardViewer(IntPtr hWndNewViewer);
        
        [DllImport("User32.dll", CharSet = CharSet.Auto)]
        public static extern bool ChangeClipboardChain(IntPtr hWndRemove, IntPtr hWndNewNext);
        
        [DllImport("user32.dll", CharSet = CharSet.Auto)]
        public static extern int SendMessage(IntPtr hwnd, uint wMsg, uint wParam, uint lParam);
    }
}